package vacuumCleaner;

public class Coordinate {
	int x, y;
	
	public Coordinate(int x, int y) {
		this.x = x;
		this.y = y;
	}
	
	@Override
	public String toString() {
		return this.x + " " + this.y;
	}
	
	@Override
	public boolean equals(Object obj) {
		return this.x == ((Coordinate)obj).x && this.y == ((Coordinate)obj).y;
	}
}
